#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import requests
suffix = '.htm'
post_url = 'http://www.ting56.com/player/tingchina.php'
d = {}
urls_list=[]
for x in range(0,1656):
	url = 'yousheng/21504/play_21504_%s.htm' % (x)
	d = {'url': url}
	r = requests.post(post_url, data=d)
	urls_list.append(r.json()['url'])
with open('E:\\pythonTest\\1.txt', 'a+') as f:
	for x in range(len(urls_list)):
		f.write(urls_list[x])
		f.write("\n")
print("success")